{% extends "../base.html" %}

{% block title %}IssueController#search{% endblock %}

{% block content %}
{% if advanced %}
        <form action="/issue/query" method="post">
            <fieldset>
                <legend>Search Issue Precisely</legend>
                <p>url: <input type="text" name="url" value="{{ url }}"></p>
                <p>comment: <input type="text" name="comment" value="{{ comment }}"></p>
                <p>tags: <input type="text" name="tags" value="{{ tags }}"></p>
                <p>status: <input type="text" name="status" value="{{ status }}"></p>
                <p>title: <input type="text" name="title" value="{{ title }}"></p>
                <p><input type="submit" value="Submit"></p>
                <p><input type="hidden" name="backend" value="precise"></p>
            </fieldset>
        </form>
{% else %}
        <a href="/issue/search/advanced">Advanced Search</a>
        <form action="/issue/query" method="post">
            <fieldset>
                <legend>Search Issue</legend>
                <p>Keyword: <input type="text" name="keyword" value="{{ keyword }}"><input type="submit" value="Search"></p>

                <p><input type="hidden" name="backend" value="google"></p>
            </fieldset>
        </form>
{% endif %}
{% endblock %}